//
//  CallTextView.swift
//  JiaoZiTaxi
//
//  Created by hc-101 on 2024/6/30.
//

import SwiftUI

struct CallTextView: View {
    var body: some View {
        VStack {
            HStack {
                Image("appstore")
                    .resizable()
                    .frame(width: 50, height: 45)
                Text("正在全力呼叫车辆...")
                    .font(.system(size: 16, weight: .medium))
                Spacer()
            }.padding(.horizontal, 32)
                .padding(.top, 12)
            VStack{
                HStack{
                    VStack (alignment: .leading) {
                        Text("你旁边有车0辆")
                            .font(.system(size: 18, weight: .medium))
                            .foregroundColor(.black)
                        Text("请耐心等待")
                            .font(.system(size: 15, weight: .regular))
                            .foregroundColor(Color(hex: "#999999"))
                            .padding(.top, 6)
                    }
                    Image("call_car_icon")
                        .resizable()
                        .frame(width: 125, height: 86)
                }
                Button {
//                    print("cancel calling.")
                    //                  self.status = .idle
                } label: {
                    Text("取消呼叫")
                    .foregroundColor(.white)
                    .font(.system(size: 17))
                }
                .frame(width: 320, height: 48)
                .padding(.horizontal, 16)
                .padding(.top, 12)
                .padding(.bottom, 20)
                .background(Color(hex: "#85308D"))
                .cornerRadius(6)
            }.background(Color(.white))
                .padding(.horizontal, 10)
                .padding(.vertical, 10)
                .cornerRadius(16)
        }.background(Color(hex: "#F1F4FA"))
            .cornerRadius(16)
        
        
    }
}

//#Preview {
//    CallTextView()
//}
